package com.education.business.mapper.system;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.education.model.dto.SubjectInfoDto;
import com.education.model.dto.SystemAdminQueryDto;
import com.education.model.entity.SystemAdmin;
import com.education.model.entity.SystemRole;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * @author zengjintao
 * @version 1.0
 * @create_at 2020/3/8 13:52
 */
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    /**
     * 获取管理员角色列表
     * @param adminId
     * @return
     */
    List<SystemRole> findRoleListByAdminId(Integer adminId);

    Page<SystemAdmin> listByFilter(Page<SystemAdmin> page, @Param("systemAdminQueryDto") SystemAdminQueryDto systemAdminQueryDto);
}
